//
//  BoozeTableViewController.h
//  VeganIsEasy
//
//  Created by Matthew Feinberg on 5/30/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <sqlite3.h>
#import "OverlayViewController.h";

@interface BoozeTableViewController : UITableViewController <UISearchBarDelegate> {
	sqlite3 *database;
	UISearchBar *searchBar;
	NSMutableArray *boozes;
	NSMutableArray *sectionTitles;
	NSMutableArray *rowsPerSection;
	NSMutableArray *startRowBySection;
	OverlayViewController *overlayController;
	BOOL searching;
}

@property (nonatomic, retain) NSMutableArray *boozes;
@property (nonatomic, retain) UISearchBar *searchBar;
@property (nonatomic, retain) NSMutableArray *sectionTitles;
@property (nonatomic, retain) NSMutableArray *rowsPerSection;
@property (nonatomic, retain) NSMutableArray *startRowBySection;
@property (nonatomic, retain) OverlayViewController *overlayController;

- (id)initWithDatabase:(sqlite3*)newDatabase;
- (void)reloadBoozesWithQuery:(NSString *)query;
- (void)stopSearching;

@end
